<?php
/**
 * Write a succes message after form submission
 *
 * Structure declaration example :
 *
 * <onSuccess>
 *     <action type="SuccessMessage">
 *         <param name="text">Thank you {name} for you submission</param>
 *     </action>
 * </onSuccess>
 */
class m_form_plugins_success_SuccessMessage extends m_form_extends_SuccessAction
{
    public function execute()
    {
        echo $this->getParameter('text', '');
        return true;
    }
}